package com.user.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.common.enums.sys.WhetherEnum;
import com.common.enums.user.MenuLevelEnum;
import com.common.enums.user.MenuStatusEnum;
import com.common.enums.user.MenuTypeEnum;
import com.common.enums.user.MenuVisibleEnum;
import com.core.domain.CorePo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author: stefanie-zy
 * @time: 2024/1/25-10:36
 * @description: Po-菜单
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_menu")
@Schema(name = "Po-菜单")
public class MenuPo extends CorePo implements Serializable {
    @Serial
    private static final long serialVersionUID = 8811840272271368403L;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "父级id")
    private Long parentId;

    @Schema(description = "菜单等级")
    private MenuLevelEnum level;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "菜单路由")
    private String path;

    @Schema(description = "是否外链接")
    private WhetherEnum isFrame;

    @Schema(description = "是否缓存")
    private WhetherEnum isCache;

    @Schema(description = "类型")
    private MenuTypeEnum type;

    @Schema(description = "是否显示")
    private MenuVisibleEnum visible;

    @Schema(description = "状态")
    private MenuStatusEnum status;

    @Schema(description = "图标")
    private String icoUrl;

    @Schema(description = "权限标识")
    private String perms;

}
